package com.cskaoyan.mall.order.api;

import com.cskaoyan.mall.order.dto.PayOrderSuccessRequest;
import com.cskaoyan.mall.order.dto.PayOrderSuccessResponse;
import org.springframework.web.bind.annotation.*;

public interface PayOrderService {

    /**
     *  支付成功时，更新订单状态，更新锁定库存
     * @param request
     * @return
     */
    //@RequestMapping(value = "/rpc/pay/success", method = RequestMethod.PUT)
    @GetMapping("/rpc/pay/success")
    PayOrderSuccessResponse payOrderSuccess(@RequestBody PayOrderSuccessRequest request);
}
